#include "SMPPDestAddrNpResolution.hpp"

using namespace smpp::pdu;

DestAddrNpResolution::DestAddrNpResolution(const quint8 nValue):
TLV(TLVtags::TAG_DEST_ADDR_NP_RESOLUTION,1),_Value(nValue){}

DestAddrNpResolution::DestAddrNpResolution(
const DestAddrNpResolution &nDestAddrNpResolution):
TLV(nDestAddrNpResolution),_Value(nDestAddrNpResolution.getValue()){}

bool DestAddrNpResolution::operator ==(
	const DestAddrNpResolution &nDestAddrNpResolution) const{
	return (TLV::operator == (nDestAddrNpResolution) && 
			_Value == nDestAddrNpResolution.getValue());
}

bool DestAddrNpResolution::operator !=(
	const DestAddrNpResolution &nDestAddrNpResolution) const{
	return !this->operator == (nDestAddrNpResolution);
}

DestAddrNpResolution &DestAddrNpResolution::operator = (
	const DestAddrNpResolution &nDestAddrNpResolution){
	if(*this == nDestAddrNpResolution)
		return *this;
	TLV::operator = (nDestAddrNpResolution);
	_Value = nDestAddrNpResolution.getValue();
	return *this;
}

void DestAddrNpResolution::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 DestAddrNpResolution::getValue() const{
	return _Value;
}
